package com.fingersoft.im.model;

import android.text.TextUtils;

import com.fingersoft.im.utils.AppUtils;

import java.io.Serializable;

/**
 * Created by jameson on 11/1/16.
 */

public class TokenInfo implements Serializable {
    private String did;
    @Deprecated
    private String appPath;
    private String uid;
    private String userToken;
    private String gnetToken;
    private String imid;
    private String qsid;

    public String getQsid() {
        return qsid;
    }

    public void setQsid(String qsid) {
        this.qsid = qsid;
    }

    public String getGnetToken() {
        return gnetToken;
    }

    public void setGnetToken(String gnetToken) {
        this.gnetToken = gnetToken;
    }

    public String getUserToken() {
        return userToken;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    @Deprecated
    public String getAppPath() {
        return TextUtils.isEmpty(appPath) ? AppUtils.J_ECODE : appPath;
    }

    @Deprecated
    public void setAppPath(String appPath) {
        this.appPath = appPath;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getImid() {
        return imid;
    }

    public void setImid(String imid) {
        this.imid = imid;
    }
}
